Cast to avoid warning
authorRichard Hult <richard@imendio.com>
Mon, 2 Feb 2009 13:21:13 +0000 (14:21 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:31 +0000 (10:15 +0200)
gdk/quartz/gdkdrawable-quartz.c

index 347e0e8611bc8cb615d47afaffba36e2a90a36f9..ce1513e5eac29471e4187f7e77d3c1cea7352230 100644 (file)
@@ -350,7 +350,7 @@ gdk_quartz_draw_drawable (GdkDrawable *drawable,
        * by using a scroll. FIXME: We need to check that the params support
        * this hack, and make sure it's done properly with any offsets etc?
        */
-      if (drawable == window_impl)
+      if (drawable == (GdkDrawable *)window_impl)
         {
           [window_impl->view scrollRect:NSMakeRect (xsrc, ysrc, width, height)
                                      by:NSMakeSize (xdest - xsrc, ydest - ysrc)];